import tkinter as tk

top = tk.Tk()
top.title('Hello Tk')
top.geometry('640x480+100+100')
top.resizable(True, False)
upperframe = tk.Frame(top, bg='blue')
upperframe.pack(side = tk.TOP, fill = tk.X)

label1 = tk.Label(upperframe, text = 'label1', bg='red')
label1.pack(side=tk.LEFT)

label2 = tk.Label(upperframe, text = 'label2', bg='red')
label2.pack(side=tk.RIGHT)

lowerframe = tk.Frame(top)
lowerframe.pack(side = tk.BOTTOM, fill = tk.X)

label3 = tk.Label(lowerframe, text = 'label3')
label3.pack(side=tk.LEFT)

label4 = tk.Label(lowerframe, text = 'label4')
label4.pack(side=tk.RIGHT)

top.mainloop()